package com.lonely.purchase.service;

import cn.hutool.core.lang.Tuple;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.purchase.domain.dto.materialpurchase.DeductionReplenishDTO;
import com.lonely.purchase.domain.entity.SysMaterialPurchaseDeductionReplenish;

import java.util.List;
import java.util.Map;

/**
 * @author : 黄志标
 * @date: 2025/7/23 15:20
 * @description:
 */
public interface IMaterialPurchaseDeductionReplenishService extends IService<SysMaterialPurchaseDeductionReplenish> {

    /**
     * 扣减补料
     *
     * @param deductionReplenishDTO
     */
    void addDeductionReplenish(DeductionReplenishDTO deductionReplenishDTO);

    /**
     * 获取指定物料采购对应的扣损总数量和补料总数量
     *
     * @param materialPurchaseIds
     * @return
     */
    Map<Long, Tuple> getMaterialPurchaseDeductionReplenishQuantityMap(List<Long> materialPurchaseIds);
}
